{% macro render_admin_page(pagination, endpoint) %}

    <div class="text-center">
        <ul class="pagination">
            <li><a href="{{ url_for(endpoint, page=1) }}">首页</a></li>
            {% if pagination.has_prev %}
                <li><a href="{{ url_for(endpoint, page=pagination.prev_num) }}"><i class="fa fa-angle-double-left"></i></a>
                </li>
            {% else %}
                <li><span><i class="fa fa-angle-double-left"></i></span></li>
            {% endif %}
            {% for pages in pagination.iter_pages() %}
                {% if pages %}
                    {% if pages != pagination.page %}
                        <li><a href="{{ url_for(endpoint, page=pages) }}">{{ pages }}</a></li>
                    {% else %}
                        <li class="active"><a href="#">{{ pages }}</a></li>
                    {% endif %}
                {% endif %}
            {% endfor %}
            {% if pagination.has_next %}
                <li><a href="{{ url_for(endpoint, page=pagination.next_num) }}"><i class="fa fa-angle-double-right"></i></a>
                </li>
            {% else %}
                <li><span ><i class="fa fa-angle-double-right"></i></span></li>
            {% endif %}
            <li><a href="{{ url_for(endpoint, page=pagination.pages) }}">末页</a></li>

        </ul>
    </div>
{% endmacro %}